package monster.flight.admin.action.xtgl.key;

import java.util.HashMap;
import java.util.List;

import monster.comm.action.BaseJsonListAction;
import monster.comm.log.ILog;
import monster.comm.log.LogService;
import monster.comm.util.ReturnConstant;
import monster.flight.admin.manager.service.xtgl.KeyService;
import monster.flight.comm.entity.vo.Keytable;
/**
 * 
* 创建信息=============
* 类名: monster.flight.admin.action.xtgl.key.KeyCheckAction
* 类作用描述: 获取主键列表
* 创建人： 鲜虎 
* 创建时间： 2013-1-25 下午03:39:53
* 修改信息1=============
* 修改类型:     //1.修改bug 2.业务变化修改
* 修改描述: 
* 修改人：  
* 修改时间：
 */
public class KeyListAction extends BaseJsonListAction<KeyService,Keytable> {
	private static final long serialVersionUID = 1L;
	private static ILog log = LogService.getLog(KeyListAction.class);
	private KeyService keyService;
	private List<Keytable> listVO;
	private Keytable keytableVO;
	public String allKeyList(){
		String isLogin = isLogin();//是否登录
		if(!"1".equals(isLogin)){
			returnVO.returnCode=ReturnConstant.IS_NOT_LOGIN;
    	}else{
    		try {
				 HashMap<String, Object> map = new HashMap<String, Object>();
				 if(keytableVO==null){
					 keytableVO =new Keytable();
				 }
		         map.put("condition", keytableVO);
				 listVO =  doPage(keyService,keytableVO,map);
  			} catch (Exception e) {
      			returnVO.returnCode=ReturnConstant.IS_DEAL_FAIL;
          		returnVO.returnDesc=e.getMessage();
          		log.error(e.getMessage());
  			}
    	}
		return SUCCESS;
	}
	public Keytable getKeytableVO() {
		return keytableVO;
	}

	public void setKeytableVO(Keytable keytableVO) {
		this.keytableVO = keytableVO;
	}

	public List<Keytable> getListVO() {
		return listVO;
	}
	
	public KeyService getKeyService() {
		return keyService;
	}
	
	public void setKeyService(KeyService keyService) {
		this.keyService = keyService;
	}
}
